<!DOCTYPE html>
<html>
<head>
    {include file='public/meta'/}

    <link rel="stylesheet" href="/assets/merchant/css/bootstrapSwitch.css">
 

    <link rel="stylesheet" href="/assets/merchant/css/addmchat.css"/>
    <link rel="stylesheet" href="/assets/merchant/css/creatcard.css"/>
    <script src="/assets/merchant/js/liandong.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <!--路径导航-->
        <div class="page-heading">
            <ul class="breadcrumb">
                <li>当前位置是&nbsp;:</li>
                <li><a href="#">微信卡券</a></li>
                <li class="active" style="color: #02b87f;">优惠券列表</li>
            </ul>
        </div>
        <!--内容列表-->
        <div class="panel mgl15 mgr15" >
            <div class="panel-heading addCharts" style="background:#ededed;">卡券核销列表</div>
            <table class="table table-hover" data-toolbar="#toolbar">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>卡券名称</th>
                    <th>卡券CODE</th>
                    <th>使用时间</th>
                    <th>领取时间</th>
                    <th>核销状态</th>
                    <th>核销来源</th>
                    <th>操作</th>

                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.card_id}</td>
                        <td>{$vo.code}</td>
                        <td>{$vo.consume_time|date="Y-m-d H:i",###}</td>
                        <td>{$vo.create_time}</td>
                        <td></td>
                        <td>{$vo.outerid}</td>
                        <td class="chakan">查看</td>
                    </tr>
                {/volist}
                </tbody>
            </table>
            {$list->render()}
        </div>


        {include file='public/footer'/}
    </div>
</section>
</body>
<script src="/assets/merchant/js/bootstrapSwitch.js"></script>
<script src="/assets/merchant/js/commen.js" type="text/javascript" charset="utf-8"></script>
<script>
    $(function () {
        $('#myTab a:first').tab('show');
    });
</script>

<script type="text/javascript">
    function upload(file, typed) {
        var formData = new FormData();
        formData.append('file', $('#' + file)[0].files[0]);
        formData.append('other', file);

        $.ajax({
            url: "",
            type: 'POST',
            cache: false,
            data: formData,
            processData: false,
            contentType: false,
        }).done(function (res) {
            $("." + file).attr("src", res.savapath).css("display", "block");
            $(".file-" + file).val(res.other);
            $("." + typed + "-" + file).val(res.other);
        }).fail(function (res) {
            alert("上传失败")
        });
    }
</script>


</html>
